package com.xiaohao.healthrecords.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("health_record")
public class HealthRecord {
    @Id
    @TableId(type = IdType.AUTO)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Integer id;
    protected String number;
    protected String parentName;
    protected String relationship;
    protected String phone;
    protected String name;
    protected String sex;
    protected String birthday;
    protected String nation;
    protected String address;
    protected String school;
    protected String store;
    protected String date;
    protected String leftBefore;
    protected String leftBeforeAstigma;
    protected String rightBefore;
    protected String rightBeforeAstigma;
    protected String leftAfter;
    protected String rightAfter;
    protected String amblyopia;
    protected String amblyopiaMsg;
    protected String strabismus;
    protected String strabismusMsg;
    protected String mydriasis;
    protected String mydriasisMsg;
    protected String glasses;
    protected String glassesMsg;
    protected String orthok;
    protected String orthokMsg;
    protected String other;
    protected String otherMsg;
    protected String maternalInher;
    protected String paternalInher;
    protected String note;
    protected String registrant;
    protected String regisTime;
    protected Integer storeIndex;
}
